package com.cv.system.controller.platform.user.vo;

import com.cv.framework.common.validation.Password;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 视频平台 - 用户密码修改 Request VO
 * 
 * @author Charles_XDXD
 */
@Data
@Schema(description = "视频平台 - 用户密码修改 Request VO")
public class PlatformUserPasswordReqVO {

    /**
     * 用户帐号
     */
    @Schema(description = "用户帐号", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
    @NotEmpty(message = "用户帐号不能为空")
    private String username;
    
    /**
     * 新密码
     */
    @Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "654321")
    @NotEmpty(message = "新密码不能为空")
    @Password
    private String newPassword;

}
